package com.ruoyi.web.controller.vantController.teamController;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.system.domain.construction.FunctionalZone;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.BrandInfo;
import com.ruoyi.system.service.vantservice.teamservice.ApiFunctionalService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(value = "施工案例功能区接口", tags = {"施工案例功能区接口"})
@RestController
@RequestMapping("/api/team/functional")
@CrossOrigin
public class ApiFunctionalController extends BaseController {


    @Autowired
    private ApiFunctionalService apiFunctionalService;

    @ApiResponses({@ApiResponse(code = 200, message = "正常", response = BrandInfo.class)})
    @ApiOperation(value = "施工案例功能区ID查询")
    @GetMapping(value ="/getFunctionalId/{caseId}")
    public List<FunctionalZone> getFunctionalId(@PathVariable("caseId") Integer caseId){
        return apiFunctionalService.getFunctionalId(caseId);
    }

}
